package com.xingda.packing.dmss.minitor.controller;

import com.xingda.packing.dmss.common.R;
import com.xingda.packing.dmss.minitor.service.IPkDownWheelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/api/downWheel")
public class PkDownWheelController {

    @Resource
    IPkDownWheelService pkDownWheelService;

    @GetMapping("/getStatisticsInfo")
    public R getStatisticsDownWheelInfo() {
        try {
            return R.ok().put("data", pkDownWheelService.getStatisticsInfo());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return R.error();
    }
}
